import {
	Tools
} from 'weaver-mobile';

export const getResourceCard = (params = {}) => Tools.callApi({
	url: `/api/hrm/resource/getResourceCard`,
	method: 'GET',
	params,
});

export const editResource = (params = {}) => Tools.callApi({
	url: `/api/hrm/resource/editResource`,
	method: 'POST',
	params,
});

export const getResourceBaseTitle = (params = {}) => Tools.callApi({
	url: `/api/hrm/resource/getResourceBaseTitle`,
	method: 'GET',
	params,
});

export const getUploadPortrailAuthInfo = (params = {}) => Tools.callApi({
	url: `/api/hrm/usericon/getHasRight`,
	method: 'GET',
	params,
});

export const saveUserIcon = (params = {}) => Tools.callApi({
	url: `/api/hrm/usericon/saveUserIcon`,
	method: 'POST',
	params,
});

export const hrmResourceCheck = (params = {}) => Tools.callApi({
	url: `/api/hrm/resource/hrmResourceCheck`,
	method: 'GET',
	params,
});